package ipebg.mzk.facade.system.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ComboboxBean implements Serializable{
	private String id;
	private String text;

	public ComboboxBean() {

	}

	public ComboboxBean(String id, String text) {
		this.id = id;
		this.text = text;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}

	public static List<ComboboxBean> buildComboboxBean(List<String> list) {
		if(list ==null) return null;
		List<ComboboxBean> comboboxBeans = new ArrayList<ComboboxBean>();
		for (String str : list) {
			comboboxBeans.add(new ComboboxBean(str,str));
		}
		return comboboxBeans;
	}
	
}
